package org.blackcat.domain;

import org.blackcat.core.annotation.Size;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 詹泽
 * @date 2017/2/23
 */
public class BloodPressure  implements Serializable{

    private String id;
    private String userId;
    @Size(min=50,max=200)
    private Integer highPressure;
    @Size(min=50,max=200)
    private Integer lowPressure;
    @Size(min=40,max=200)
    private Integer pulse;
    private Date gmtCreate;
    private Date gmtModified;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getHighPressure() {
        return highPressure;
    }

    public void setHighPressure(Integer highPressure) {
        this.highPressure = highPressure;
    }

    public Integer getLowPressure() {
        return lowPressure;
    }

    public void setLowPressure(Integer lowPressure) {
        this.lowPressure = lowPressure;
    }

    public Integer getPulse() {
        return pulse;
    }

    public void setPulse(Integer pulse) {
        this.pulse = pulse;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "BloodPressureService{" +
                "id='" + id + '\'' +
                ", highPressure=" + highPressure +
                ", lowPressure=" + lowPressure +
                ", pulse=" + pulse +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                '}';
    }
}
